package com.ssy.mall.service;

import com.github.pagehelper.PageInfo;
import com.ssy.mall.common.ApiRestResponse;
import com.ssy.mall.model.request.CreateOrderReq;
import com.ssy.mall.model.request.UpdateOrderNoReq;
import com.ssy.mall.model.request.UpdateUserReq;
import com.ssy.mall.model.vo.OrderVO;

/**
 * @author: 苏少有的idea
 * @date:   2022/1/5
 * @description  订单service
 */
public interface OrderService {
    String create(CreateOrderReq createOrderReq);

    OrderVO detail(String orderNo);

    PageInfo listForCustomer(Integer pageNum, Integer pageSize);

    void cancel(String orderNo);

    String qrcode(String orderNo);

    PageInfo listForAdmin(Integer pageNum, Integer pageSize);

    void pay(String orderNo);

    void delivered(String orderNo);

    //订单完结
    void finish(String orderNo);

    ApiRestResponse updateByOrderNo(UpdateOrderNoReq updateOrderNoReq);
}
